package com.zy.mc_module.ui.micang;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.LinearLayoutManager;

import com.zy.mc_module.base.kotlin.BaseActivity;
import com.zy.mc_module.databinding.ActivitySystemMessageBinding;
import com.zy.mc_module.ui.micang.adapter.SystemMessageAdapter;
import com.zy.mc_module.utils.StatusBarUtil;
import com.zy.mc_module.utils.retrofit.error.ThdException;

import java.util.Arrays;

public class SystemMessageActivity extends BaseActivity<RiceContract.View,RicePresenter, ActivitySystemMessageBinding> implements RiceContract.View {
    @NonNull
    @Override
    public ActivitySystemMessageBinding getViewBinding() {
        return ActivitySystemMessageBinding.inflate(getLayoutInflater());
    }

    @Override
    protected void initView() {
        super.initView();
        StatusBarUtil.setImmersiveStatusBar(this);
        initRefresh(binding.refreshLayout,binding.recycleView);
        SystemMessageAdapter adapter = new SystemMessageAdapter(Arrays.asList(1,2,3,4));
        binding.recycleView.setLayoutManager(new LinearLayoutManager(context));
        binding.recycleView.setAdapter(adapter);
    }

    @Override
    public void onError(ThdException error) {

    }

    @Override
    public <T> void onSuccess(T t, int type) {

    }

    @Override
    public void onError(ThdException error, int type) {

    }
}
